package com.aplink.generic.cloudmessage;

import com.aplink.generic.controller.GenericApplication;
import com.google.android.gms.gcm.GoogleCloudMessaging;

public class GenericCloudMessage extends GoogleCloudMessaging {
    private static GenericCloudMessage sInstance = null;

    public static GenericCloudMessage getInstance() {
        if (GenericCloudMessage.sInstance == null) {
            synchronized (GenericCloudMessage.class) {
                GenericCloudMessage.sInstance = (GenericCloudMessage) GoogleCloudMessaging
                        .getInstance(GenericApplication.getInstance()
                                .getBaseContext());
            }
        }
        return GenericCloudMessage.sInstance;
    }
}
